package cn.edu.jiangnan.cashmanagement.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 角色类型表
 */
@Entity
@Table(name="role_tbl")
public class RoleEntity implements Serializable
{
	private static final long	serialVersionUID	= 3544747281847617463L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	private Long	roleId;//角色ID

	@Column(name = "rolename", length = (int)50, nullable = false)
	private String	roleName;//角色名称
	
	public static final String ROLE_URSER 			= "ROLE_URSER";
	public static final String ROLE_MANAGER 		= "ROLE_MANAGER";
	public static final String ROLE_ACCOUNTER 		= "ROLE_ACCOUNTER";
	public static final String ROLE_ADMIN			= "ROLE_ADMIN";

	@Column(name = "role", length = (int)30, nullable = false)
	private String	role;//角色缩写

	@Column(name = "delTag", length = (int) 1)
	private String	delTag;//删除标志:0:删除;1:启动;

	public Long getRoleId()
	{
		return roleId;
	}

	public void setRoleId(Long roleId)
	{
		this.roleId = roleId;
	}

	public String getRoleName()
	{
		return roleName;
	}

	public void setRoleName(String roleName)
	{
		this.roleName = roleName;
	}

	public String getRole()
	{
		return role;
	}

	public void setRole(String role)
	{
		this.role = role;
	}

	public String getDelTag()
	{
		return delTag;
	}

	public void setDelTag(String delTag)
	{
		this.delTag = delTag;
	}
	
	
}
